#ifndef _PARTHUS_HS_LED_
#define _PARTHUS_HS_LED_

/*
 * MODULE NAME:    hs_led.h
 * PROJECT CODE:   BlueStream
 * DESCRIPTION:    Leds for headset
 * MAINTAINER:     
 * DATE:           
 *
 * SOURCE CONTROL: $Id: hs_led.h,v 1.4 2009/02/18 02:42:34 tianwq Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2008 RDA Inc.
 *     All rights reserved.
 *
 */

#include "sys_config.h"
#include "sys_types.h"

enum
{
    HS_LED_MAIN_BLUE,
    HS_LED_MAIN_RED,
    HS_LED_COUNT
};

enum
{
    HS_LED_NOT_CONFIG,
        
    HS_LED_LEDS_OFF ,

    HS_LED_RED_LONG_ON_RPT,
    HS_LED_BLUE_LONG_ON_RPT,    

    HS_LED_RED_TWO_FLASHES,
    HS_LED_BLUE_TWO_FLASHES,

    HS_LED_RED_FLASHES_ONE_SEC,
    HS_LED_BLUE_FLASHES_ONE_SEC,   

    HS_LED_BLUE_ONE_FLASHES_HALF_SEC_ON_ONE_SEC_RPT,
    HS_LED_BLUE_ONE_FLASHES_ONE_SEC_ON_THREE_SEC_RPT,
    
    HS_LED_RED_ONE_FLASHES_HALF_SEC_ON_ONE_SEC_RPT,
    HS_LED_RED_ONE_FLASHES_HALF_SEC_ON_THREE_SEC_RPT,
    
    HS_LED_RED_BLUE_LONG_FLASHES,
    
    HS_LED_RED_ONE_FLASHES_HALF_SEC_ON_FIVE_SEC_RPT,
    HS_LED_BLUE_ONE_FLASHES_HALF_SEC_ON_FIVE_SEC_RPT,

    HS_LED_PATTERN_COUNT
};

//#define HS_LED_POWERON                      HS_LED_BLUE_FLASHES_ONE_SEC
//#define HS_LED_TESTMODE                    HS_LED_RED_LONG_ON_RPT
//#define HS_LED_CONNECT                      HS_LED_BLUE_TWO_FLASHES
//#define HS_LED_IDLE                         HS_LED_BLUE_ONE_FLASHES_HALF_SEC_ON_THREE_SEC_RPT
//#define HS_LED_SNIFF                        HS_LED_BLUE_TWO_FLASHES_HALF_SEC_ON_THREE_SEC_RPT
//#define HS_LED_ACTIVE                       HS_LED_BLUE_ONE_FLASHES_ONE_SEC_ON_THREE_SEC_RPT
//#define HS_LED_LOWPOWER                     HS_LED_RED_ONE_FLASHES_HALF_SEC_ON_ONE_SEC_RPT
//#define HS_LED_POWEROFF                     HS_LED_BLUE_TWO_FLASHES
//#define HS_LED_SCANNING                     HS_LED_RED_BLUE_LONG_FLASHES
//#define HS_LED_UNCONNECTED_IDLE     HS_LED_RED_ONE_FLASHES_HALF_SEC_ON_FIVE_SEC_RPT
//#define HS_LED_CONNECTED_IDLE           HS_LED_BLUE_ONE_FLASHES_HALF_SEC_ON_FIVE_SEC_RPT

void HSLedTimer_Set_Patten(void* arg);
void HSLed_Initialise(void);
void HSLed_Set_Patten(u_int8 pattern_index);
void HSLed_Sched(void);

#endif

